#include "adc_task.h"
#include "FreeRTOS.h"
#include "adc.h"


uint16_t AD_Buf[7]={0};

uint16_t AD_Value[7] = {0};

void adc_task(void const * argument)
{
	
	HAL_ADC_Start_DMA(&hadc1,(uint32_t *)&AD_Buf,7);//ADC
	
	
	
	while(1){
	
		AD_Value[0] = AD_Buf[0];
		AD_Value[1] = AD_Buf[1];
		AD_Value[2] = AD_Buf[2];
		AD_Value[3] = AD_Buf[3];
		AD_Value[4] = AD_Buf[4];
		AD_Value[5] = AD_Buf[5];
		AD_Value[6] = AD_Buf[6];
	
		vTaskDelay(1);
	}
	

}


